home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / text / hyper / ADtoHT2_1.lha / Source.lha / MyLib.lha / string / strcat.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-09  |  411 b   |  22 lines

  1. #include <string.h>
  2.  
  3. /************************************************************************/
  4.  
  5. char *(strcat)(char *String1, const char *String2)
  6.  
  7. #if defined(__GNUC__) && defined(__OPTIMIZE__)
  8.   return __inlined_strcat(String1,String2);
  9. #else
  10.   char *t;
  11.  
  12.   t=String1;
  13.   while(*t++)
  14.     ;
  15.   --t;
  16.   while((*t++=*String2++))
  17.     ;
  18.   return String1;
  19. #endif  /* defined(__GNUC__) && defined(__OPTIMIZE__) */
  20. }
  21.